home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 February / CHIPCD_02_2002.iso / Internet / Macromedia ColdFusion Server 5 / coldfusion-50-win-us.exe / data1.cab / Examples / CFDOCS / snippets / lstimeformat.cfm < prev    next >
Encoding:
Text File  |  2001-06-13  |  794 b   |  38 lines

  1. <!--- This shows LSTimeFormat --->
  2.  
  3. <HTML>
  4.  
  5. <HEAD>
  6. <TITLE>LSTimeFormat Example</TITLE>
  7. </HEAD>
  8.  
  9. <BASEFONT FACE="Arial, Helvetica" SIZE=2>
  10. <BODY  bgcolor="#FFFFD5">
  11.  
  12. <H3>LSTimeFormat Example</H3>
  13.  
  14. <P>LSTimeFormat returns a time value using
  15. the locale convention.  
  16.  
  17. <!--- loop through a list of possible locales and
  18. show time values  --->
  19. <CFLOOP LIST="#Server.Coldfusion.SupportedLocales#"
  20. INDEX="locale" DELIMITERS=",">
  21.     <CFSET oldlocale = SetLocale(locale)>
  22.  
  23.     <CFOUTPUT><P><B><I>#locale#</I></B><BR>
  24.     #LSTimeFormat(Now())#<BR>
  25.     #LSTimeFormat(Now(), 'hh:mm:ss')#<BR>    
  26.     #LSTimeFormat(Now(), 'hh:mm:sst')#<BR>    
  27.     #LSTimeFormat(Now(), 'hh:mm:sstt')#<BR>    
  28.     #LSTimeFormat(Now(), 'HH:mm:ss')#<BR>    
  29.         <hr noshade>
  30.     </CFOUTPUT>
  31.  
  32. </CFLOOP>
  33.  
  34.  
  35.  
  36. </BODY>
  37. </HTML>       
  38.